import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/user/queryPageUser',
    method: 'post',
    data,
  })
}

export function doEdit(data) {
  return request({
    url: '/user/updateUser',
    method: 'post',
    data,
  })
}

export function doAdd(data) {
  return request({
    url: '/user/addBaseUser',
    method: 'post',
    data,
  })
}

export function doDelete(data) {
  return request({
    url: '/user/deleteUserById',
    method: 'post',
    data,
  })
}

export function showUserInfo(data) {
  return request({
    url: '/user/findUserByName?userName=' + data,
    method: 'get',
  })
}

export function findUserHistory(data) {
  return request({
    url: '/history/findHistoryByName?userName=' + data,
    method: 'get',
  })
}
